package grpc_client

import (
	"longmen/server/config/global"
	"longmen/server/pkg/common/helper/const"
	pb "longmen/server/pkg/protobuf"
)

var HongBaoServerClient pb.HongBaoServerClient

func InitHongBaoGrpc(token *Token) {
	accountConn := getClientConn(global.GetMicroserviceName(_const.GRPC_HONG_BAO_SERVER_NAME_KEY), token)
	HongBaoServerClient = pb.NewHongBaoServerClient(accountConn)
}
